/*
 * @Date: 2022-03-28 22:20:04
 * @LastEditors: fenglan
 * @LastEditTime: 2022-03-29 13:03:22
 * @FilePath: /payment/pay/src/App.js
 */
import './App.css';
import  NavBar from './components/NavBar'
import Login from './pages/Login'
import {Routes,Route,Navigate} from 'react-router-dom'
function App() {
  return (
    <Routes>
    <Route path='/login' element={<Login />}></Route>
    <Route path='/' element={<Navigate to='login' />}></Route>
    <Route path="/pages/*" element={<NavBar />}></Route>
    </Routes>
  );
}

export default App;

